/**
 * Created by DELL on 2017/4/17.
 */
module.exports=function time(fn){
    console.time('用时');
    if(typeof fn==='function'){
        fn();
    }
    console.timeEnd('用时');
};